package com.ruoyi.zhmk.service;

import com.ruoyi.faceApi.click.IFaceCallBack;
import com.ruoyi.faceApi.entity.FaceIdentification;
import com.ruoyi.zhmk.mapper.ZhmkUserinoutMapper;
import org.springframework.context.ApplicationContext;

/**
 * @Author: wwy
 * @Date: 2021/6/23 14:51
 */
public class FaceCallBack implements IFaceCallBack {
    public static ApplicationContext applicationContext;
    @Override
    public void invoke(FaceIdentification faceIdentification) {
        IZhmkUserinoutService zhmkUserinoutService = applicationContext.getBean(IZhmkUserinoutService.class);
        zhmkUserinoutService.addZhmkUserInfo(faceIdentification);
    }
}
